package com.gopay.common.domain.cps;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

@Entity
@Table(name = "CPS_TRANS_INFO")
public class CpsTransInfo extends BaseEntity {
    
	private static final long serialVersionUID = 8535653239271768161L;
	
	private String gopayIntTxnCd;
	private String transName;
	private String transType;
	private String orderType;
	private String defaultOrderFeePayer;
	private String displayName;
	private int delFlag;
	private Date createTs;
	private Date lastUpsTs;
	private String lastUpdTranCode;
	private int version;

	@Column(name="DISPLAY_NAME")
	public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    @Column(name="CREATED_TS")
    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Column(name="LAST_UPD_TS")
    public Date getLastUpsTs() {
        return lastUpsTs;
    }

    public void setLastUpsTs(Date lastUpsTs) {
        this.lastUpsTs = lastUpsTs;
    }

    @Column(name="LAST_UPD_TRANCODE")
    public String getLastUpdTranCode() {
        return lastUpdTranCode;
    }

    public void setLastUpdTranCode(String lastUpdTranCode) {
        this.lastUpdTranCode = lastUpdTranCode;
    }

    @Version
    @Column(name="VERSION")
    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Id
	@Column(name = "GOPAY_INT_TXN_CD", unique = true, nullable = false, length = 10)
	public String getGopayIntTxnCd() {
		return this.gopayIntTxnCd;
	}

	public void setGopayIntTxnCd(String gopayIntTxnCd) {
		this.gopayIntTxnCd = gopayIntTxnCd;
	}

	@Column(name = "TRANS_NAME", nullable = false, length = 50)
	public String getTransName() {
		return this.transName;
	}

	public void setTransName(String transName) {
		this.transName = transName;
	}

	@Column(name = "TRANS_TYPE", nullable = false, length = 2)
	public String getTransType() {
		return this.transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	@Column(name = "ORDER_TYPE", nullable = false, length = 2)
	public String getOrderType() {
		return this.orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	@Column(name = "DEFAULT_FEE_PAYER", nullable = false, length = 2)
	public String getDefaultOrderFeePayer() {
		return this.defaultOrderFeePayer;
	}

	public void setDefaultOrderFeePayer(String defaultOrderFeePayer) {
		this.defaultOrderFeePayer = defaultOrderFeePayer;
	}

	@Column(name = "DEL_FLAG", nullable = false, precision = 22, scale = 0)
	public int getDelFlag() {
		return this.delFlag;
	}

	public void setDelFlag(int delFlag) {
		this.delFlag = delFlag;
	}

}
